<template>
  <div>
    <div class="box" v-show="isShow">
      <div class="txt">{{ title2 }}</div>
      <div class="cha" @click="cha">X</div>
      <p @click="qu">{{ title }}</p>
      <p @click="que">{{ title1 }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    isShow: {
      default: "",
      type: Boolean,
    },
    title: {
      default: "取消",
      type: String,
    },
    title1: {
      default: "确定",
      type: String,
    },
    title2: {
      default: "标题",
      type: String,
    },
  },

  name: "",
  components: {},
  data() {
    return {
      isShow1: false,
    };
  },
  created() {},
  mounted() {},
  methods: {
    qu() {
      this.$emit("qu", this.isShow1);
    },
    que() {
      this.$emit("que", this.isShow1);
    },
    cha() {
      this.$emit("cha", this.isShow1);
    },
  },
};
</script>
<style scoped lang="scss">
.box {
  position: relative;
  width: 400px;
  height: 300px;
  background: pink;
  border-radius: 40px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  color: #fff;
  text-align: center;
  .txt {
    position: absolute;
    left: 150px;
    top: 50px;
  }
  p {
    width: 150px;
    height: 50px;
    line-height: 50px;
    background: blue;
    text-align: center;
    margin-top: 220px;
  }
  .cha {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    line-height: 50px;
    text-align: center;
    background: red;
    position: absolute;
    right: 30px;
    top: 30px;
  }
}
</style>
